//
//  ViewController.m
//  xiance
//
//  Created by 钟纪旺 on 16/12/16.
//  Copyright © 2016年 zjw. All rights reserved.
//

#import "ViewController.h"
#import <Photos/Photos.h>
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
  
    [self setImage];
    
}
- (void)setImage{





}
- (IBAction)onbutton:(id)sender {
    UIImagePickerController *imagePickerController = [[UIImagePickerController alloc]init];
    //设置代理
    imagePickerController.delegate = self;
    //是否允许编辑（默认为 NO
    imagePickerController.allowsEditing = YES;
      imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
     [self presentViewController:imagePickerController animated:YES completion:^{}];
    
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
